#ifndef __LIMIT_SWITCH_H
#define	__LIMIT_SWITCH_H

#include "stm32f10x.h"
#include "stdbool.h"

typedef enum
{
    LS_XMin,
    LS_XMax,
    LS_YMin,
    LS_YMax,
    LS_ZMin,
    LS_ZMax
} LimitSwitch;

typedef struct
{
    bool END_XMin;
    bool END_XMax;
    bool END_YMin;
    bool END_YMax;
    bool END_ZMin;
    bool END_ZMax;

} EndStopST;

void LimitSwitch_HwInit(void);
bool LimitSwitch_Pressed(uint8_t sw);

#endif /* __LIMIT_SWITCH_H */
